package com.pet.platform.dto;

import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.time.LocalDateTime;

@Data
public class PostDTO {
    private Long id;
    
    @NotBlank(message = "标题不能为空")
    @Size(min = 2, max = 100, message = "标题长度必须在2-100个字符之间")
    private String title;
    
    @NotBlank(message = "内容不能为空")
    private String content;
    
    private String category;
    
    private Long userId;
    private String username;
    private String userAvatar;
    private Integer likes;
    private Integer comments;
    private Integer status;
    private LocalDateTime createdTime;
    private LocalDateTime updatedTime;
} 